function getTime(){
    const time=new Date();
    let yyyy=time.getFullYear();
    let mon=time.getMonth()+1;
    let dd=time.getDate();
    let hh=time.getHours();
    let mm=time.getMinutes();
    mon=mon<10?"0"+mon:mon
    dd=dd<10?"0"+dd:dd
    hh=hh<10?"0"+hh:hh
    mm=mm<10?"0"+mm:mm
    return `${yyyy}-${mon}-${dd} ${hh}:${mm} `
}

function getWeek(){
    const time=new Date();
    const n=time.getDay();
    switch(n){
        case 0:return "日";
        case 1:return "一";
        case 2:return "二";
        case 3:return "三";
        case 4:return "四";
        case 5:return "五";
        case 6:return "六";
        default: return 
    }
}
module.exports={
    getTime,getWeek
}